from fastapi import FastAPI,Path
from routers import users



app = FastAPI()

app.include_router(users.router)

@app.get("/")
async def index():
    return {"message": "Hello World"}


@app.get("/greeting/{name}")
async def greeting(name: str=Path(max_length=10,description="请在此输入姓名")):
    return {"message": f"Hello {name}"}
